package com.ruoyi.category.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资讯信息对象 category_message_info
 * 
 * @author zbz
 * @date 2024-04-22
 */
public class CategoryMessageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 省份 */
    @Excel(name = "省份")
    private String provinceName;

    /** 城市 */
    @Excel(name = "城市")
    private String cityName;

    /** 标题 */
    @Excel(name = "标题")
    private String categoryMessageTitle;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 来源 */
    @Excel(name = "来源")
    private String categoryMessageSource;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date categoryMessageReleaseTime;

    /** 正文 */
    @Excel(name = "正文")
    private String categoryMessageMainBody;

    /** 点击量 */
    @Excel(name = "点击量")
    private Long clickNum;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long ilikeNum;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setCategoryMessageTitle(String categoryMessageTitle) 
    {
        this.categoryMessageTitle = categoryMessageTitle;
    }

    public String getCategoryMessageTitle() 
    {
        return categoryMessageTitle;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setCategoryMessageSource(String categoryMessageSource) 
    {
        this.categoryMessageSource = categoryMessageSource;
    }

    public String getCategoryMessageSource() 
    {
        return categoryMessageSource;
    }
    public void setCategoryMessageReleaseTime(Date categoryMessageReleaseTime) 
    {
        this.categoryMessageReleaseTime = categoryMessageReleaseTime;
    }

    public Date getCategoryMessageReleaseTime() 
    {
        return categoryMessageReleaseTime;
    }
    public void setCategoryMessageMainBody(String categoryMessageMainBody) 
    {
        this.categoryMessageMainBody = categoryMessageMainBody;
    }

    public String getCategoryMessageMainBody() 
    {
        return categoryMessageMainBody;
    }
    public void setClickNum(Long clickNum) 
    {
        this.clickNum = clickNum;
    }

    public Long getClickNum() 
    {
        return clickNum;
    }
    public void setIlikeNum(Long ilikeNum) 
    {
        this.ilikeNum = ilikeNum;
    }

    public Long getIlikeNum() 
    {
        return ilikeNum;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("provinceName", getProvinceName())
            .append("cityName", getCityName())
            .append("categoryMessageTitle", getCategoryMessageTitle())
            .append("img", getImg())
            .append("categoryMessageSource", getCategoryMessageSource())
            .append("categoryMessageReleaseTime", getCategoryMessageReleaseTime())
            .append("categoryMessageMainBody", getCategoryMessageMainBody())
            .append("clickNum", getClickNum())
            .append("ilikeNum", getIlikeNum())
            .append("addtime", getAddtime())
            .toString();
    }
}
